<?php
/**************************************************
QQ:797311 (supdes) Zeai.cn V9
**************************************************/
error_reporting(E_ALL & ~E_NOTICE);
define('ZEAI',substr(dirname(__FILE__),0,-3));
$_ZEAI = array();require_once ZEAI.'cache/config.php';
require_once ZEAI.'sub/func.php';
$_GET = daddslashes($_GET);
$_POST = daddslashes($_POST,$_POST['ifbase64']);
$_COOKIE = daddslashes($_COOKIE);
if (!ini_get('register_globals')){extract($_POST);extract($_GET);extract($_FILES);extract($_COOKIE);}
$HOSTtmp = substr(dirname(dirname(__FILE__)),strlen($_SERVER['DOCUMENT_ROOT'])+1,50);$HOSTtmp_fg = !empty($HOSTtmp)?'/':'';
$http = (empty($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] != "on")?'http:':'https:';
define('HOST',$http.'//'.$_SERVER['HTTP_HOST'].$HOSTtmp_fg.$HOSTtmp);
if($_ZEAI['www']!=HOST && !empty($_ZEAI['www'])){
    Header("HTTP/1.1 301 Moved Permanently");
    header('Location: '.$_ZEAI['www']);exit;
}
const JSON_ERROR = '{"flag":"zeai_error","msg":"网络故障或会员已隐藏"}';
const HEADMETA = '<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, minimum-scale=1, viewport-fit=cover, user-scalable=no"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black">';$rtn = $dbvar.'_cn__ch'.'k_u';
define('SELF',trimhtml($_SERVER['PHP_SELF']));
$_ZEAI['ver'] = 'v9.2';
define('ADDTIME',time());
define('RES',$_ZEAI['res2'].'/');
define('UP',$_ZEAI['up2'].'/');
header("content-Type: text/html; charset=utf-8");
$_ZEAI['CookDomain']=substr(HOST,strpos(HOST,'.'),99);
$navarr = json_decode($_ZEAI['nav'],true);
const MATE_DIY_F  = 'mate_age1,mate_age2,mate_heigh1,mate_heigh2,mate_weigh1,mate_weigh2,mate_pay,mate_edu,mate_love,mate_car,mate_house,mate_areaid,mate_job,mate_child,mate_marrytime,mate_companykind,mate_smoking,mate_drink,mate_areaid2';
?>